package org.hyjiacan.jcapture.deadqq.client.util;

public class JCapture {
	private static JCapture instance;
	private static Window win;

	private JCapture() {
		win = new Window();
		CaptureObserver obs = new CaptureObserver();
		win.setListener(obs);
		obs.observe(win);
	}

	public static void capture() {
		if (instance == null) {
			instance = new JCapture();
		}
		win.setVisible(true);
	}
}
